package com.keba.lamp.office.service;

import com.keba.lamp.office.vo.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

/**
 * office 操作相关接口
 */
public interface OfficeApiFacade {


    OfficeFileVO getOffice(String fileId);

    OfficeFileDownloadVO download(String fileId);

    List<OfficeUserVO> getUser(List<Long> userId);

    OfficePermissionVO getPermission(Long fileId);

    /**
     * 保存Office
     */
    OfficeFileVO saveOffice(String fileId, MultipartFile file);

    void uploadOffice(InputStream file, String fileId, String fileName, Integer fileSize, String userId);

    /**
     * 初始化Office
     *
     * @param queryVO
     * @return
     */
    OfficeInitVO initOffice(OfficeQueryVO queryVO);

}
